#!/bin/bash
dest_human_file='global.human.js'
dest_file='global.js'
src_file=`find ./base -type f`
src_file=${src_file}' '`find ./plugin -type f`

#clear...
echo  >${dest_file}

for f in ${src_file}
do
	cat ${f} >> ${dest_human_file}
done

cat ${dest_human_file} | jsmin > ${dest_file}
